<h1>{$forumTitle}</h1>
<h2>{$hall.name}</h2>

<table width="100%">
    <tr>
        <td><a href="{$listOfHallsLink}">{$listOfHalls}</a></td>
        <td>{if $allowedCreateThread}<a href="{$newThreadLink}">{/if}
                {$newThread}
            {if $allowedCreateThread}</a>{/if}</td>
        <td><a href="{$contactAdminLink}">{$contantAdmin}</a></td>
        <td><a href="{$rulesLink}">{$rules}</a></td>
        <td><a href="{$helpLink}">{$help}</a></td>
        <td align="right">
            {$formStart}
            {$search}
            <input type="text" name="search" />
            <input type="submit" value="&raquo;" />
            </form>
        </td>
    </tr>
    <tr>
        <td colspan="6" align="right">
            {$paging}
            {displaytemplate template="pages" module="Forum" param=$pages}
        </td>
    </tr>
</table>

<table width="100%">
    <tr>
        <th>{$threadName}</th>
        <th width="10%">{$threadAutor}</th>
        <th width="15%">{$threadResponses}</th>
        <th width="15%">{$lastResponse}</th>
    </tr>
    {section name=thread loop=$threads}
    <tr>
        <td><a href="{$threads[thread].link}">{$threads[thread].name}</a></td>
        <td align="center"><a href="{$threads[thread].authorlink}">{$threads[thread].author}</a></td>
        <td align="center">{$threads[thread].responses}</td>
        <td align="right">{$threads[thread].lastResponse|date_format:"%d.%m.%Y %H:%M:%S"}</td>
    </tr>
    {/section}
</table>

<table width="100%">
    <tr>
        <td><a href="{$listOfHallsLink}">{$listOfHalls}</a></td>
        <td>{if $allowedCreateThread}<a href="{$newThreadLink}">{/if}
                {$newThread}
            {if $allowedCreateThread}</a>{/if}</td>
        <td><a href="{$contactAdminLink}">{$contantAdmin}</a></td>
        <td><a href="{$rulesLink}">{$rules}</a></td>
        <td><a href="{$helpLink}">{$help}</a></td>
        <td align="right">
            {$formStart}
            {$search}
            <input type="text" name="search" />
            <input type="submit" value="&raquo;" />
            </form>
        </td>
    </tr>
    <tr>
        <td colspan="6" align="right">
            {$paging}
            {displaytemplate template="pages" module="Forum" param=$pages}
        </td>
    </tr>
</table>